
echo doing...
cat /etc/issue /etc/centos-release 2>/dev/null|grep -q "release"&&OS="RedHat"
cat /etc/issue /etc/centos-release 2>/dev/null|grep -q "Ubuntu"&&OS="Debian"
INFLUXDB_VER=1.7.1
if [ "$OS" = "RedHat" ]
then 
        yum -y localinstall https://s.xabcloud.com/file/influxdb-${INFLUXDB_VER}.x86_64.rpm
        wget -q https://s.xabcloud.com/file/influxdb.repo -O /etc/yum.repos.d/influxdb.repo
fi
if [ "$OS" = "Debian" ]
then 
        wget -q https://s.xabcloud.com/file/influxdb_${INFLUXDB_VER}_amd64.deb
        dpkg -i influxdb_${INFLUXDB_VER}_amd64.deb
        rm -f influxdb_${INFLUXDB_VER}_amd64.deb
fi